<?php
    $tag = $_GET["tag"];
    $args = $_GET["args"];

    exec("bash /root/peer/peer.sh -Path /root/go/src/github.com/hyperledger/fabric/fabric-samples/bin/ -" . $tag . " '" . $args . "' 2>&1", $output, $ret);
    for ($x = 0; $x < count($output); $x++) {
        echo $output[$x];
    }
?>